package com.hkbigdata.transfrom;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author liuanbo
 * @creat 2023-04-19-18:00
 * @see 2194550857@qq.com
 */
public class Flink05_TranfFrom_Shuffle {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);

         env
                .fromElements(10, 3, 5, 9, 20, 8)
                 .shuffle()
                 .print();
         env.execute();
    }
}
